<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$basicinfo['b_webtitle']}</title>
<import type="css" file="css.main" />
</head>
<body>
<div class="cl" id="toptb">
	<div class="wp">
		<div class="z">
			<a onclick="setHomepage('http://localhost/discuz/');" href="javascript:;">设为首页</a>
			<a onclick="addFavorite(this.href, '{$basicinfo['b_webtitle']}');return false;" href="{$basicinfo['b_url']}">收藏本站</a></div>
		</div>
	</div>
</div>
<div style="width:100%;margin:auto;text-align:center;">
	<div class="header">
		<div class="Z_logo">
			<a target="_self" href="" style="text-decoration:none;" class="taobao-img-logo">
				<img width="1000px" title="" alt="" src="__PUBLIC__/img/zjx_logo.jpg">
			</a>
		</div>
	</div>
	<div id="mallNav">
	    <div class="mallNav-con">
	         <div class="clearfix" style="width:1000px;margin:auto;" id="header_dh">
	            <ul class="mallNav-main">
	                <li class="curChn gourl" data-catid="mallfp"><span class="item pointer" onclick="location.href='/'">首页</span></li>
	                <volist name="headermodule" id="vo">
						<li class="gourl"><a href="/www/{$vo.url}/index/modid/{$vo.mod}<?php echo C('HTML_FILE_SUFFIX')?>" id="mod_id_{$vo.mod}">{$vo.name}</a></li>
					</volist>               
	            </ul>
	        </div>
	    </div>
	</div>
</div>
<script type='text/javascript'>
var modlist = [{$mainModlist}]
</script>
</body>
</html>
<script type="text/javascript">
function setHomepage(sURL) {
	try{
        obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
	}
	catch(e){
	        if(window.netscape) {
	                        try {
	                            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
	                        }
	                        catch (e) {
	                            alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");
	                            return false;
	                        }
	                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
	                        prefs.setCharPref('browser.startup.homepage',vrl);
	         }
	} 
}
function addFavorite(url, title) {
	try
    {
            window.external.addfavorite("{$basicinfo['b_url']}","{$basicinfo['b_webtitle']}");
    }
    catch (e)
    {
            try
            {
                    window.sidebar.addPanel("{$basicinfo['b_webtitle']}", "{$basicinfo['b_url']}", "");
            }
            catch (e)
            {
                    alert("加入收藏失败，请使用ctrl+d进行添加");
            }
    } 
}
</script>

